package com.ruoyi.CompareCoordinate.domain;

import lombok.Data;
import java.util.List;

@Data
public class CoordinateCompare {
    private List<Row> detail;
    private Ratio ratio;
    private String type; // 新增字段：全部 / 关键

    @Data
    public static class Row {
        private String id;
        private String oldStr;
        private String newStr;
        private double x;
        private double y;
        private double z;
        private String wtm1;
        private String wtm2;
        private Boolean same;

        public Row() {
        }

        public Row(String id, String oldStr, String newStr, double x, double y, double z, String wtm1, String wtm2, Boolean same) {
            this.id = id;
            this.oldStr = oldStr;
            this.newStr = newStr;
            this.x = x;
            this.y = y;
            this.z = z;
            this.wtm1 = wtm1;
            this.wtm2 = wtm2;
            this.same = same;
        }
    }

    @Data
    public static class Ratio {
        private Integer total;
        private Integer same;
        private Double rate;
    }
}